package cn.exrick.xboot.modules.notice.entity;

import cn.exrick.xboot.base.XbootBaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author Exrick
 */
@Data
@Entity
@Table(name = "t_notice")
@TableName("t_notice")
@ApiModel(value = "测试")
public class Notice extends XbootBaseEntity {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "公告标题")
    private String noticeTitle;
    @ApiModelProperty(value = "公告内容")
    private String  noticeConten;
    @ApiModelProperty(value = "公告描述")
    private String  noticeDesc;
    @ApiModelProperty(value = "公告级别")
    private Integer noticeRate;
    @ApiModelProperty(value = "是否置顶")
    private Integer noticeIsTop;
    //这个字段不是数据库中的字段，是为了接收数据方便而创建的字段
    @TableField(exist = false)
    @ApiModelProperty(value = "图片表id")
    private String imageId;

    /**
     * 新增合表字段
     */
    @ApiModelProperty(value = "地址")
    private String url;
    @ApiModelProperty(value = "数据来源（记录数据是从什么系统推送过来的）")
    private String source;
    @ApiModelProperty(value = "图片地址）")
    private String imageUrl;
    @ApiModelProperty(value = "区分公文  1:本地 0：异构系统")
    private String infoCode;
    @ApiModelProperty(value = "部门")
    private String department;
}